package daizuo.bean;

/**
 * @author cyt
 * @create 2020-07-21 19:14
 */
public class Goods {

    private String id;
    private String goodsName;
    private int goodsPrice;
    private int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Goods() {
    }

    @Override
    public String toString() {
        return
                "id," + id +
                        ",goodsName," + goodsName +
                        ",goodsPrice," + goodsPrice;
    }

    public Goods(String goodsName, int goodsPrice) {
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
    }

    public Goods(String id, String goodsName, int goodsPrice) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(int goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
}
